angular.module('div-slide-in', [])

.directive 'divSlideIn', ->
    restrict    : 'E'
    templateUrl : 'templates/div-slide-in/div-slide-in.html'
    scope:
        'items' : '=items'
    link: ($scope, $element, $attrs) ->
        _.extend $scope,
            animation: ->
                $scope.items.push {
                    spec:''
                    price:''
                    store:''
                }
                console.log $element.children().children()
            remove: (i)->
#                console.log $element.children().children()[i]
#                ele = $element.children().children()[i]
#                ngEle = angular.element($element.children().children()[i])
#                _.each $element.children().children(),(item)->
#                    angular.element(item).removeClass('slide-right-in')
#                ngEle.addClass('slide-left-out')
                $scope.items.splice(i,1)



.controller 'divSlideInCtrl', ($scope, $state, $ionicHistory,$http) ->




